<?php

('Access-Control-Allow-Origin：*');
// include("../xsdb.class.php");
include("../config/mysql.php");
$db = new mysql();
$type = $_GET["type"];
$rid = $_GET["rid"];
$produ = $_GET["produ"];
$produIntroduce = $_GET["produIntroduce"];
$price = $_GET["price"];
$Agencyprice = $_GET["agencyPrice"];
$Externalprice = $_GET["externalPrice"];
$remarks = $_GET["remarks"];
$time = $_GET["time"];
$validYear = $_GET["validYear"];
$company_id = $_GET["company_id"];


$sql = "INSERT INTO resourcedetails (type,produ,produIntroduce,price,Agencyprice,Externalprice,remarks,time,rid,validYear,company_id) VALUES ('{$type}','{$produ}','{$produIntroduce}','{$price}','{$Agencyprice}','{$Externalprice}','{$remarks}','{$time}','{$rid}','{$validYear}',{$company_id})";
echo $db->Query($sql);
$db->close();
